import Model from '../index'

class UserInfo extends Model {

  // 修改用户
  updateUserInfo (options) {
    options.url = '/api/fontend/userInfo/updateUserInfo'
    return this.post(options)
  }

  // 用户详情
  getUserInfoDeatil (options) {
    options.url = '/api/fontend/userInfo/getUserInfoDeatil'
    return this.post(options)
  }

  // 用户粉丝
  getUserFans (options) {
    options.url = '/api/fontend/userInfo/getUserFans'
    return this.post(options)
  }

  // 用户关注
  getUserFollowers (options) {
    options.url = '/api/fontend/userInfo/getUserFollowers'
    return this.post(options)
  }

  // 用户关注和取消关注
  replaceUserRelationship (options) {
    options.url = '/api/fontend/userInfo/replaceUserRelationship'
    return this.post(options)
  }

  // 查询用户列表
  searchUserList (options) {
    options.url = '/api/fontend/userInfo/searchUserList'
    return this.post(options)
  }
}

const userInfoModel = new UserInfo()
export default userInfoModel
